package unit08;

public class Demo02 {
    public static void main(String args[]) {
        String s = "ABCDabcd";
        char cStart = s.charAt(0);
        char cEnd = s.charAt(s.length() - 1);
        System.out.println(cStart);
        System.out.println(cEnd);
    }
}
